• ABOUT
  • RESOURCES
    • Network Map
    • Rate Centers & LATAs
    • CPNI
    • Docs
    • Product Roadmap
  • SOLUTIONS.
    • E911
    • CNAM
    • PBX
    • Colocation
    • Call Routing LRN
    • LATA and Switch Data
    • Global Phone numbers
  • PRICING
  • DEVELOPERS
  • COVERAGE
  • CONTACT
  • LOGIN
  • SIGNUP
  • EN
    • EN
    • ID
    • RO
    • ES
    • PT
    • RU
    • IT

UNLIMITED

$0.10
Please enter a contact.
Dialing... Incoming call Answering, connectivity checks in progress... Call connected

1

2

ABC

3

DEF

4

GHI

5

JKL

6

MNO

7

PQRS

8

TUV

9

WXYZ

*

0

+

#

ERROR: This service requires JavaScript. Please enable JavaScript in your web browser settings. ERROR: This service requires WebRTC. Please try Mozilla Firefox or Google Chrome, using the latest version is strongly recommended. ERROR: JsCommunicator configuration not found ERROR: Failed to initialize user agent ERROR: SIP Registration failure ERROR: failed to start call, check that microphone/webcam are connected, check browser security settings, peer may not support compatible codecs
WebSocket link: Connected Disconnected
SIP registration: Registered Not Registered
June 14, 2019

v3 Receiving SMS/MMS messages

Description:

Receive SMS/MMS messages on the numbers you rent from MultiTEL

Prerequisites:

You need to have a SMS enabled number in your account. For the purposes of this how-to document, this will be 15672058715.

This will only work via POST method (no GET) (If you need help renting a phone number, please visit this link. The first 30 seconds of that video should be self-explanatory.)


What do you need to do first?:

Edit the number and set up the SMS destination:
1. Go to https://multitel.net/numbers/inventory  ( This is located in the "Numbers" section on left hand side , called "My Numbers")
2. Edit the phone number:

3. Go in the SMS/MMS tab and edit the settings:




This should be enough for MultiTEL to start sending you SMS/MMS messages via HTTP(s) POST.


Parameters we will send:

from
to
text
mediaurls


Sample NGREP capture:

For MMS:
(message contains just an image)

T 104.X.Y.Z:39452 -> 139.X.Y.Z:80 [AP]
POST /inbound.php HTTP/1.1.
Host: crm-test.multitel.net.
Accept: */*.
Content-Type: application/x-www-form-urlencoded.
Content-Length: 118.
.
from=15862040XYZ&to=15672058715&mediaurls%5B0%5D=https%3A%2F%2Fs3.amazonaws.com%2Fxbyhmms02%2FmLyrS05nj5tp0gDi9XYZ.jpg

For MMS:
(message contains both text and an image)

T 104.X.Y.X:55388 -> 139.X.Y.Z:80 [AP]
POST /handler.php HTTP/1.1.
Host: crm-test.multitel.net.
Accept: */*.
Content-Type: application/x-www-form-urlencoded.
Content-Length: 205.
.
from=15862040XYZ&to=15672058715&mediaurls%5B0%5D=https%3A%2F%2Fs3.amazonaws.com%2Fixnhmms02%2FMeXiU6uPfcg201283745.jpg
&mediaurls%5B1%5D=https%3A%2F%2Fs3.amazonaws.com%2Frxytmms02%2Fa4zuc0Jbyuw501234567.txt

(notice that the text of the message - due to it being a MMS message - is also part of the mediaurls array)

For SMS:
(message contains just text)

T 104.X.Y.Z:56292 -> 139.X.Y.Z:80 [AP]
POST /handler.php HTTP/1.1.
Host: crm-test.multitel.net.
Accept: */*.
Content-Type: application/x-www-form-urlencoded.
Content-Length: 45.
.
from=15862040XYZ&to=15672058715&text=hi+there


Sample code for parsing the input and sending it via e-mail (this would be on your server):

<?php
$input = $_POST;
$subject = "New SMS/MMS message from ".$input['from']." to ".$input['to'];
$to = "dearcustomer@mailserver.abc";
$message = "You have received a new message from ".$input['from']."\n";
$message.= "This message has been sent to your phone number, ".$input['to']."\n";
$message.= "Message contents, below:\n\n";
$message.= (!empty($_POST['text']) ? $_POST['text'] : ''); // if MMS , there will be no $_POST['text'] parameter
$message.= "\n\n";
if (!empty($_POST['mediaurls'])) {
foreach ($_POST['mediaurls'] as $url) {
$message.= urldecode($url)."\n";
}
}
echo $message;
$headers = "From: webmaster@mailserver.abc\r\n";

mail($to,$subject,$message,$headers);
?>

Similar Articles

January 07, 2015

GetCountries REST/JSON Service

READ MORE
January 09, 2015

GetAreas JSON Service

READ MORE
January 09, 2015

GetDIDs JSON Service

READ MORE
January 09, 2015

ReleaseNumber REST/JSON function

READ MORE
January 09, 2015

GetRingTo function

READ MORE
  • COMPANY
  • PRICING
  • DEVELOPERS
  • CONTACT
  • SOLUTIONS
  • E911
  • CNAM
  • PBX
  • Call Routing LRN
  • LATA and Switch Data
  • Global Phone numbers
  • COVERAGE
  • International Numbers
  • Portability
  • Voice and SMS
ANYWHERE, ANYTIME

Hassle-free cost-effective
communications & collaboration solutions

SIGNUP NOW
MultiTEL BBB Business Review
SecurityMetrics PCI validation certification logo

2025. MultiTEL LLC. All rights reserved

  • Terms of Service
  • Privacy Policy
  • Support
  • Contact